//
// Created by shrike on 16-9-20.
//

#ifndef BANKQUEUE_CUSTOMER_H
#define BANKQUEUE_CUSTOMER_H

#include "random.h"


class Customer {
 public:
  Customer():arrive_time(0),
             duration(Random::uniform(RANDOM_DURATION)),
             next(nullptr){}
  Customer(int arrive_time):
          arrive_time(arrive_time),
          duration(Random::uniform(RANDOM_DURATION)),
          next(nullptr){}

 public:
  int arrive_time;
  int duration;//time of customer need to be served
  Customer* next;
};

#endif //BANKQUEUE_CUSTOMER_H
